<? startScript('jquery, jquery.tools'); ?><script type="text/javascript">
	jQuery(function($) { $("ul.jt-tabs").tabs("div.jt-panes > div"); });
</script><? endScript(); ?>

<form action="" method="post">

	<ul class="jt-tabs"><?
	
		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	
	<div class="jt-panes">
	
		<? $t = true; 
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" style="<?=$t ? "display:block" : ""?>">
		
				<div><strong>Javascript</strong><br />
					<textarea class="no-editor" name="text[<?=$l?>]" cols="80" rows="25"><?=dat('object', $l, 'text')?></textarea>
				</div>
				
			</div><? 
		
		$t = false; } ?>
	
	</div>

	
	<p><input type="submit" name="editor_save" value="Save" /></p>

</form>

</div>
